* {
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 960px;
    max-height: 640px;
}


.GameUIButton {
    width: 100px;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    border-radius: 5px;
    color: #fff;
    background-color: #097fec;
    text-align: center;
}

.GameUIButton:hover {
    background-color: #78b8f3;
}

#main {
    /* min-width: 1024px; */
    /* min-height: 768px; */
    width: 100%;
    height: 100%;
    background-color: bisque;
}

#loading,
#login,
#register {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
}

#loadingbox {
    position: relative;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
}

#loadingtext {
    color: #fff;
    font-size: 14px;
    padding: 20px 0;
    display: inline-block;
    text-align: center;

}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loginbox {
    position: relative;
    width: 300px;
    height: 150px;
    top: calc(50% - 75px);
    left: calc(50% - 150px);
    background-color: rgba(255, 255, 255, 0.5);
    /* border: 1px solid #fff; */
    border-radius: 5px;
    box-sizing: border-box;
    padding: 10px 0;
}

span {
    color: #fff;
    font-size: 14;
    display: inline-block;
    width: 40px;
}

input {
    border: 0;
    outline: none;
    background-color: rgba(255, 255, 255, 0.8);
    width: 200px;
    height: 24px;
    border-radius: 4px;
    padding: 0 5px;
}

.inputitem {
    margin-top: 10px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.loginbutton {
    display: inline-block;
    width: 200px;
    height: 25px;
    line-height: 25px;
    background-color: #057eee;

    border-radius: 4px;
    font-size: 12px;
    color: #fff;
}

.loginbutton:hover {
    background-color: #78b8f3;

}

#login_log {
    font-size: 12px;
    color: #fff;
    padding: 0 40px;
    text-align: right;
    margin-top: 10px;
}

#roomBox {
    border-radius: 10px;
    width: 100px;
    height: 100px;
    width: 560px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    display: flex;
    justify-content: space-between;
    left: calc(50% - 280px);
    top: calc(50% - 100px);
}

#leftpalyerlist,
#rightpalyerlist {
    width: 230px;
    height: 100%;
    display: inline-block;
    background: rgba(255, 255, 255, 0.0);
    display: flex;
    align-content: center;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

#roommiddle {
    width: 100px;
    height: 100%;
    display: inline-block;
    background: rgba(255, 255, 255, 0);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.roomPlayerItem {
    width: 60px;
    height: 60px;
    background: red;
    margin: 0 5px;
    position: relative;
}

.roomPlayerHeader {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.roomPlayerItemName {
    border-radius: 2px;
    position: absolute;
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    color: #fff;
    bottom: 0px;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.roomPlayerItemReady {
    font-size: 28px;
    color: rgb(100, 10, 160);
    position: absolute;
    top: 0px;
    left: 0px;
}

#roomPklcon {
    font-size: 32px;
    margin-left: 15px;
    color: rgb(255, 169, 57);
    text-shadow: 1px 1px 1px #333;
}


#readyButton {
    position: absolute;
    width: 100px;
    ;
    bottom: 30px;
    left: calc(50% - 50px);
}


#roomTitle {
    position: absolute;
    width: 200px;
    height: 30px;
    line-height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    top: 5px;
    left: calc(50% - 100px);
    font-size: 12px;
    text-align: center;
    border-radius: 4px;
}

#preparationSelect {
    width: 275px;
    height: 300px;
    position: absolute;
    top: calc(50% - 150px);
    /* top: 50px; */
    left: 20px;
    background: rgba(1, 1, 1, 0.4);
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    display: inline-block;
    overflow-y: hidden;
    overflow-x: hidden;
}

.preparationSelectItem {
    width: 80px;
    height: 80px;
    border: 1px solid #474747;
    background: rgb(51, 51, 51);
    border-radius: 5px;
    display: inline-block;
    filter: grayscale(100%);
}

.preparationSelectItem div {
    width: 100%;
    height: 100%;
}

.preparationSelectItemSelected {
    border: 1px solid #fff679;
    background: rgba(255, 255, 255, 1);
    filter: grayscale(0%);

}

#roleInfo {
    width: 200px;
    height: 300px;
    position: absolute;
    top: calc(50% - 150px);
    right: 20px;
    background: rgba(1, 1, 1, 0.5);
    border-radius: 5px;
    padding: 10px;
    color: #bdbcbc;
    font-size: 14px;
}

#sceneMask {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}